/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表 /ttFiAccountDlr/listRecord	POST
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiAccountDlr/listRecord`, params)

// 预扣详情列表	/ttFiAccountDlr/listWithholding?deliveryId=1	GET
export const detailInfo = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiAccountDlr/getDeatil?ownerCode=${params.ownerCode}&accountTypeId=${params.accountTypeId}`)

// 冻结/解冻	 /ttFiAccountDlr/ifFreeze	POST
export const ifFreezeData = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiAccountDlr/ifFreeze`, params)

// 资金账户类型
export const getFiAccountType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)
